package com.estate.business.impl;

import com.estate.business.AllProjectService;
import com.estate.business.PriceProjectService;
import com.estate.dao.DeleProjectDao;
import com.estate.dao.ManageProjectDao;
import com.estate.dao.PriceProjectDao;
import com.estate.vo.Vo;

public class AllProjectServiceImpl implements AllProjectService {
	
	private PriceProjectDao priceProjectDao;
	private ManageProjectDao manageProjectDao;
	private DeleProjectDao deleProjectDao;

	public Vo findProjectByCAndId(int catagory, int id) {
		// TODO Auto-generated method stub
		Vo vo=null;
		if(catagory==1){
			vo=priceProjectDao.findByPK(id);
		} else if(catagory==2){
			vo=deleProjectDao.findByPK(id);
		} else if(catagory==3){
			vo=manageProjectDao.findByPK(id);
		}
		return vo;
	}

	public void setPriceProjectDao(PriceProjectDao priceProjectDao) {
		this.priceProjectDao = priceProjectDao;
	}

	public PriceProjectDao getPriceProjectDao() {
		return priceProjectDao;
	}

	public void setManageProjectDao(ManageProjectDao manageProjectDao) {
		this.manageProjectDao = manageProjectDao;
	}

	public ManageProjectDao getManageProjectDao() {
		return manageProjectDao;
	}

	public void setDeleProjectDao(DeleProjectDao deleProjectDao) {
		this.deleProjectDao = deleProjectDao;
	}

	public DeleProjectDao getDeleProjectDao() {
		return deleProjectDao;
	}



}
